#ifndef PCOMMAND_H
#define PCOMMAND_H

#include <vector>
#include <string>
#include <map>

struct Command {
    std::string name;
    std::vector<std::string> params;
};

class Commands{
public:
    std::vector<Command> cmds;
    Commands(){
        cmds.clear();
    }
    void clear();
    static Commands merge(const Commands& cmd1, const Commands& cmd2);//合并两个PCommand
    void merge(const Commands& cmd);
    std::string to_string();
    static Commands from_string(const std::string str);
};


#endif
